﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor.SceneManagement;

public class UserGUI : MonoBehaviour
{
    IUserAction userAction;
    public string gameMessage ;
    GUIStyle style, bigstyle;
    // Start is called before the first frame update
    void Start()
    {

        userAction = SSDirector.GetInstance().CurrentSceneController as IUserAction;

        style = new GUIStyle();
        style.normal.textColor = Color.white;
        style.fontSize = 30;

        bigstyle = new GUIStyle();
        bigstyle.normal.textColor = Color.white;
        bigstyle.fontSize = 50;

        
        
    }

    // Update is called once per frame
    void OnGUI() {
        userAction.Check();
        GUI.Label(new Rect(160, Screen.height * 0.1f, 50, 200), "牧师与魔鬼\n游戏目标:将三位牧师送至对岸\n注意：任意一边魔鬼的数量不能超过牧师，同时船在运输过程中船上必须有至少一个人", bigstyle);
        GUI.Label(new Rect(250, 100, 50, 200), gameMessage, style);

        string retext="ReStart";
        if (GUI.Button(new Rect(3000, 150, 360, 240), retext))
        {
            EditorSceneManager.LoadScene("SampleScene");
        }
    }
}
